//
//  WPTestViewController.swift
//  WB
//
//  Created by 汪鹏 on 2016/12/19.
//  Copyright © 2016年 汪鹏. All rights reserved.
//  测试用的

import UIKit

class WPTestViewController: WPBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //navItem.leftBarButtonItem = UIBarButtonItem(title: "返回", target: self, action: #selector(back))
        
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(goNext))
    }
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
    }
    
    @objc private func goNext(){
        
        let next = WPTestViewController()
        
        navigationController?.pushViewController(next, animated: true)
    }
    
    @objc private func back(){
        _ = navigationController?.popViewController(animated: true)
    }

    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        
    }
}
